package com.gitee.wsl.ext.bitcode


infix fun Byte.shr(bitCount: Int): Int = this.toInt().shr(bitCount)
infix fun Byte.shl(bitCount: Int): Int = this.toInt().shl(bitCount)


infix fun UByte.shl(bitCount: Int): UByte = (this.toUInt() shl bitCount).toUByte()
infix fun UByte.shr(bitCount: Int): UByte = (this.toUInt() shr bitCount).toUByte()


infix fun UShort.shl(bitCount: Int): UShort = (this.toUInt() shl bitCount).toUShort()
infix fun UShort.shr(bitCount: Int): UShort = (this.toUInt() shr bitCount).toUShort()

